package com.suyuan.dao;

import java.util.List;

import com.suyuan.entity.EmployeeInfo;
import com.suyuan.entity.EmployeeInfoExample;
import com.suyuan.entity.Permission;
import org.apache.ibatis.annotations.Param;

public interface EmployeeInfoMapper {
    int countByExample(EmployeeInfoExample example);

    int deleteByExample(EmployeeInfoExample example);

    int deleteByPrimaryKey(Integer gid);

    int insert(EmployeeInfo record);

    int insertSelective(EmployeeInfo record);

    List<EmployeeInfo> selectByExample(EmployeeInfoExample example);

    EmployeeInfo selectByPrimaryKey(Integer gid);

    int updateByExampleSelective(@Param("record") EmployeeInfo record, @Param("example") EmployeeInfoExample example);

    int updateByExample(@Param("record") EmployeeInfo record, @Param("example") EmployeeInfoExample example);

    int updateByPrimaryKeySelective(EmployeeInfo record);

    int updateByPrimaryKey(EmployeeInfo record);

    /**
     * 关联三表查询，此处暂未使用到
     * @return
     */
    EmployeeInfo inquiry(@Param("employeeId") Integer employeeId,@Param("compId") Integer compId, @Param("productId") Integer productId);

    List<Permission> selectPermissionByUsername(String username);
}